<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>数组筛选</title>
</head>
<body>



<script>
    // 声明数组
    let numberArray = [1, 2, 34, 5, 3, 5, 64, 54, -12, 53]

    // 结果集
    let resultArray = []

    // 筛选
    numberArray.forEach(item => {
        if (item >= 10) {
            resultArray.push(item)
        }
    })

    // 打印
    console.log(resultArray.toString())
</script>
</body>
</html>